﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using System.ComponentModel;
using Skyper.Phone.Presenters;
using System.Windows.Data;
using System.Collections;

namespace Skyper.Phone.View.Pages {
	public partial class HomePage : PhoneApplicationPage,IHomeView {
		#region Constructor
		public HomePage() {
			InitializeComponent();

			new HomePresenter(this);

			this.listControl.ItemsSource = new Object[]{
						 new Button(){Content="Hello"},
			};
		}
		#endregion
		#region Property
		public bool IsBusy {
			get {
				return this.progressBusy.Visibility == System.Windows.Visibility.Visible;
			}
			set {
				this.progressBusy.Visibility = (value ? Visibility.Visible : System.Windows.Visibility.Collapsed);
			}
		}
		public IEnumerable Contacts {
			get {
				return this.listControl.ItemsSource;
			}
			set {
				this.listControl.ItemsSource = value;
			}
		}
		#endregion
	}
}